package com.lhf.spareClass.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.lhf.error.ErrorMessageVo;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 尐痞猫
 * @date2021-06-26 0:21
 */
@Data
public class SpareAddVo {

    @NotBlank(message= ErrorMessageVo.FARENBIANMABUNENGWEIKONG)
    private String  legalPersonCode;
    @NotBlank(message= ErrorMessageVo.BEIJIANBIANMABUNENGWEIKONG)
    private String  code;
    @NotNull(message= ErrorMessageVo.FAZHIBUNENGWEIKONG)
    @Max(9999)
    @Min(0)
    private Integer  threshold;
    private String  remark;
}
